package com.by.common.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("分页结果")
public class PageBean <T>{
    @ApiModelProperty("当前页数")
    int page; //当前页数
    @ApiModelProperty("每页记录数")
    int pageSize; //每页记录数
    @ApiModelProperty("总记录数")
    long total; //总记录数
    @ApiModelProperty("分页结果")
    T data; //分页结果
}
